<?php
Zend_Loader::loadClass("Application_Ajax_Server_Function");
Zend_Loader::loadClass('Panes');
class DeletePane extends Application_Ajax_Server_Function
{
	public function call() {
		$id = (int) $this->_params['id'];
		$ret = false;
		if (!empty($id)) {
			$vetri = new Panes();
			$recordSet = $vetri->find($id);
			$vetro = $recordSet->current();
			$vetro->status = -1;
			$ret = $vetro->save();
		}

		return $ret;
	}
}